/*    */ package com.newcrm.manager;
/*    */ 
/*    */ public class CompanyStatusManager
/*    */ {
/*  5 */   private boolean canAddNote = true;
/*  6 */   private boolean canAddCompany = true;
/*  7 */   private boolean canLogin = true;
/*    */ 
/*  9 */   private static CompanyStatusManager instance = new CompanyStatusManager();
/*    */ 
/*    */   public static CompanyStatusManager getInstance()
/*    */   {
/* 16 */     return instance;
/*    */   }
/*    */ 
/*    */   public void updateStatus(String status)
/*    */   {
/* 24 */     this.canAddCompany = true;
/* 25 */     this.canAddNote = true;
/* 26 */     this.canLogin = true;
/*    */ 
/* 28 */     if ((status == null) || (status.trim().length() == 0)) {
/* 29 */       return;
/*    */     }
/* 31 */     status = status.trim();
/*    */ 
/* 33 */     if (status.startsWith("L0")) {
/* 34 */       return;
/*    */     }
/*    */ 
/* 37 */     if (status.startsWith("L1")) {
/* 38 */       this.canAddNote = false;
/* 39 */       return;
/*    */     }
/*    */ 
/* 42 */     if (status.startsWith("L2")) {
/* 43 */       this.canAddCompany = false;
/* 44 */       return;
/*    */     }
/*    */ 
/* 47 */     if (status.startsWith("L3")) {
/* 48 */       this.canLogin = false;
/* 49 */       return;
/*    */     }
/*    */   }
/*    */ 
/*    */   public boolean getLoginStatus() {
/* 54 */     return this.canLogin;
/*    */   }
/*    */ 
/*    */   public boolean getAddNoteStatus() {
/* 58 */     return this.canAddNote;
/*    */   }
/*    */ 
/*    */   public boolean getAddCompanyStatus() {
/* 62 */     return this.canAddCompany;
/*    */   }
/*    */ }

/* Location:           C:\E\referenceProject\CRM参考\qikebao\WEB-INF\lib\qikebao.jar
 * Qualified Name:     com.newcrm.manager.CompanyStatusManager
 * JD-Core Version:    0.6.1
 */